/*
 * Reset default form styling for browser consistency
 */
[type='color'],
[type='date'],
[type='datetime'],
[type='datetime-local'],
[type='email'],
[type='month'],
[type='number'],
[type='password'],
[type='search'],
[type='tel'],
[type='text'],
[type='time'],
[type='url'],
[type='week'],
textarea,
select {
  -moz-appearance: none;
  -webkit-appearance: none;
  border: 1px solid grey;
  border-radius: 0;
  box-shadow: none;
  max-width: 100%;

  &:focus {
    box-shadow: none;
    outline: 0;
  }
}

[type='button'],
[type='reset'],
[type='submit'],
button {
  -moz-appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 0;
  box-shadow: 0;
  background: #ccc;
  padding: .5rem;
  line-height: 1;
  cursor: pointer;
}

textarea {
  resize: none;
  width: 100%;
}

input:disabled,
input[readonly],
select:disabled,
textarea:disabled,
textarea[readonly] {
  cursor: default;
}

[type='checkbox'],
[type='file'],
[type='radio'] {
  margin: 0 0 1rem;
}

[type='checkbox'],
[type='radio'] {
  display: inline-block;
  margin-right: 5px;
  vertical-align: baseline;
}

[type='checkbox'] + label,
[type='radio'] + label {
  display: inline-block;
  margin: 0;
  vertical-align: middle;
}

[type='file'] {
  width: 100%;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

legend {
  margin-bottom: 0;
  max-width: 100%;
}
